home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 8: LINUX Games / Linux Cubed Series 8 - LINUX Games.iso / games / strategy / vga_card.000 / vga_cardgames-1.3.1.tar / vga_cardgames / vga16.h < prev    next >
C/C++ Source or Header  |  1995-02-26  |  871b  |  31 lines

  1. /*
  2.  * VGA 16 colour mode support routines
  3.  *
  4.  * Copyright (C) Evan Harris, 1993, 1994, 1995.
  5.  *
  6.  * Permission is granted to freely redistribute and modify this code,
  7.  * providing the author(s) get credit for having written it.
  8.  */
  9.  
  10. #ifdef USEGETPIXEL
  11. #include <vga.h>
  12. #endif
  13.  
  14. int vga16_init(void);
  15. void vga16_setpixel(int color, int x, int y);
  16. void vga16_text(int x, int y, char *s, int fg, int bg);
  17. void vga16_filledblock(int x0, int y0, int x1, int y1, int color);
  18. void vga16_redrawscreen(void);
  19.  
  20. #ifndef USEGETPIXEL
  21. void vga16_drawscansegment(unsigned char *colors, int x, int y, int length);
  22. void vga16_drawscanline(int y, unsigned char *colors);
  23. int vga16_getpixel(int x, int y);
  24. #else
  25. #define vga16_drawscansegment vga_drawscansegment
  26. #define vga16_drawscanline vga_drawscanline
  27. #define vga16_getpixel vga_getpixel
  28. #endif
  29.  
  30. #define vga16_waitretrace vga_waitretrace
  31.